<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020-01-19
 * Time: 13:28
 */

require_once 'vendor/autoload.php';


use Zwwl2016\Cluster\Cluster;
use Zwwl2016\Cluster\ClusterParameters;
use Zwwl2016\Cluster\ClusterCronTaskParameters;
use Zwwl2016\Cluster\ClusterCronTaskParameterPair;

function getTick() {
    list($msec,$sec)= explode(" ",microtime());
    $msectime=(float)sprintf('%.0f', (floatval($msec) + floatval($sec)) * 1000);
    return $msectime;
}
$a=getTick();
$clusterParameters = ClusterParameters::Instance()->where("weixin_user_list.app_id=wx3aa75467bf38b4f3")->where("weixin_user_list.openid=okIZ_xIIbXuWoCMOQqmWdHANjNMM");
$url='http://product.apiserver.com:30080/execute';//your cluster url
$service_key = 'WEIXIN_ATTENTION_DELAY_MESSAGE_SAVE';
$result = Cluster::Instance($url)
    ->debug(false)
    ->service($service_key)
    ->setParameters($clusterParameters)
    ->sync()

    ->start()
    ->response();
$b=getTick();
echo ($b-$a);
print_r($result);